package com.mh.www.mh_frame.network;

import android.util.Log;

import okhttp3.logging.HttpLoggingInterceptor;

/**
 * Created by lenovo on 2018/4/18.
 */

public class InterceptorUtil {
    public static String TAG="----";
    //日志拦截器
    public static HttpLoggingInterceptor LogInterceptor(){
        return new HttpLoggingInterceptor(new HttpLoggingInterceptor.Logger() {
            @Override
            public void log(String message) {
                Log.w(TAG, "log: "+message );
            }
        }).setLevel(HttpLoggingInterceptor.Level.BODY);//设置打印数据的级别
    }
}
